package com.rainng.coursesystem.module.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rainng.coursesystem.module.system.dto.request.SysUserQueryReqDTO;
import com.rainng.coursesystem.module.system.dto.response.SysUserResBaseDTO;
import com.rainng.coursesystem.module.system.dto.response.SysUserResDTO;
import com.rainng.coursesystem.module.system.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUserResDTO> paging(Page page, @Param("query") SysUserQueryReqDTO params);

    List<SysUserResBaseDTO> listAllUsers();

}
